<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php 
	$baseurl = 'http://localhost:8888/beta/'; 
	if ( isset($_GET['page']) && $_GET['page'] !== '' ) 
		$page = $_GET['page'];
	else {
		$page = '';
	}
?>
<head><title>beta wireframing engine</title></head>
<script src="<?php echo $baseurl; ?>src/js/mootools-1.2.1-core.js" type="text/javascript"></script>
<script src="<?php echo $baseurl; ?>src/js/mootools-1.2-more.js" type="text/javascript"></script>
<script src="<?php echo $baseurl; ?>src/js/tinymce/tiny_mce.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo $baseurl; ?>src/css/master.css" type="text/css" media="screen" charset="utf-8" />
<script type="application/javascript">
	
	function mceSetup() {
		
		tinyMCE.init({
			mode: "textareas",
			theme: "advanced",
			plugins: "safari,pagebreak,style,layer,table,save,advhr,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
			theme_advanced_buttons1: "bold,italic,underline,link,unlink,strikethrough,formatselect",
			theme_advanced_buttons2: "",
			theme_advanced_buttons3: "",
			theme_advanced_buttons4: "",
			theme_advanced_toolbar_location: "external",
			theme_advanced_toolbar_align: "left",
			theme_advanced_statusbar_location: "bottom",
			theme_advanced_resizing: false,
			event_elements : "a"
		});
		
	}
	
</script>
<script src="<?php echo $baseurl; ?>src/js/beta_class.js" type="text/javascript"></script>
<script type="application/javascript">
	
	window.addEvent('domready', function() {
		var myBeta = new Beta ({
			
			// just edit these parameters ...
			
			baseurl:	'http://localhost:8888/beta/', 
			site:		'<?php echo $page; ?>', 
			loader:		$('loader'),
			info:		$('info')
		
		});	
		
	});
	
</script>
<body id="body">
	<div id="drawer"></div>
	<div id="loader"></div>
	<div id="info"></div>
	<div id="sidebar" style="top: -22px; left: 50px;">
		<div>
			<a id="add_box"></a>
			<a id="add_text"></a>
			<a id="pages"></a>
			<a id="use">benutzen</a>
			<a id="edit">bearbeiten</a>
			<a id="save"></a>
			<div class="clearfix"></div>
		</div>
	</div>

	<div id="contents"></div>
	
</body>
</html>